package jmu.edu.yjc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jmu.edu.yjc.domain.entity.Type;
import jmu.edu.yjc.mapper.TypeMapper;
import jmu.edu.yjc.service.TypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 类型表(Type)表服务实现类
 *
 * @author makejava
 * @since 2023-03-12 17:59:36
 */
@Service("typeService")
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type> implements TypeService {

    @Override
    public Type getTypeByTypeID(String id) {
        LambdaQueryWrapper<Type> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(Type::getTypeId,id);
        return getOne(wrapper);
    }
}
